get_filename_component(KimeraVIO_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
include(CMakeFindDependencyMacro)

list(APPEND CMAKE_MODULE_PATH ${KimeraVIO_CMAKE_DIR})

find_dependency(Gflags REQUIRED)
find_dependency(Glog REQUIRED)
find_dependency(GTSAM REQUIRED)
find_dependency(GTSAM_UNSTABLE REQUIRED)
find_dependency(OpenCV REQUIRED)

list(REMOVE_AT CMAKE_MODULE_PATH -1)

if(NOT TARGET kimera_vio)
  include("${KimeraVIO_CMAKE_DIR}/kimera_vioTargets.cmake")
endif()
